package com.hmall.common.Client;
import com.hmall.common.dto.OderDTO;
import com.hmall.common.dto.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "oderservice")
public interface OrderClient {
    @GetMapping("/order/{id}")
    Order queryOrderById(@PathVariable("id") Long orderId);
    @PostMapping("/order")
    Long createOrder(@RequestBody OderDTO oderDTO);

    @PutMapping("/order/{id}")
  void updateOrderStatus(@PathVariable("id") Long orderId);
}



